<template>
<div>
  <el-steps :active="active" finish-status="success" style="width: 800px">
    <el-step title="试卷基本信息"></el-step>
    <el-step title="添加试题"></el-step>
    <el-step title="试卷设置"></el-step>
  </el-steps>

  <el-form ref="form" :model="form" label-width="120px" style="width: 800px">
    <el-form-item label="试卷分类名称：">
      <el-input v-model="form.paper_class"></el-input>
    </el-form-item>
    <el-form-item label="试卷名称">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="试卷期次">
      <el-input v-model="form.paper_grade"></el-input>
    </el-form-item>
<!--    <el-form-item label="试卷类型">-->
<!--      <el-radio-group v-model="form.difficulty">-->
<!--        <el-radio label="固定试卷"></el-radio>-->
<!--        <el-radio label="随机试卷"></el-radio>-->
<!--      </el-radio-group>-->
<!--    </el-form-item>-->

    <el-form-item label="试卷难度">
      <el-radio-group v-model="form.difficulty">
        <el-radio label="容易"></el-radio>
        <el-radio label="一般"></el-radio>
        <el-radio label="困难"></el-radio>
      </el-radio-group>
    </el-form-item>

    <el-form-item>
      <el-button type="primary" @click="onSubmit">下一步</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>

</div>
</template>

<script>
export default {
  name: "message.vue",
  data(){
    return {
      active: 0,
      form: {
        name: '',
        create_time:"",
        update_time:"",
        paper_class:"",
        paper_grade: "",
        difficulty:"",
        status:"",
        subject:[],
        total_score:"",
        use_count:"",
        create_man:""


      }
    }
  },
  methods: {
    onSubmit() {

      this.$router.push({path:'/fixed',query:{paperMessage:this.form}})
    }
  }
}
</script>

<style scoped>

</style>